package com.zzx.project.service;

import com.zzx.project.entity.Article;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleService {
    int addArticle(Article article, String uid);

    Article getNewArticleByUname(String userName);

    List<Article> getLevelThree();

    List<Article> getLevelOne();

    int getLevelOneCount();

    int getAllArticleCount();

    List<Article> getArticleBySearch(String content);

    List<Article> getHotArticle();

    List<Article> getRecommend();

    List<Article> getRandomArticle();

    List<Article> getArticleByColumn(int column);

    Article getArticleById(String aidString);

    List<Article> getArticleForPage(int pageNo);

    List<Article> getArticlesByTagName(String tname);

    void addAudience(String uid, int aid);

    int addSupportById(String uids, int aid);
}
